package com.animatron.sample.client.tree.node;

import java.util.ArrayList;
import java.util.List;

public class Node {
	List<Node> items = new ArrayList<Node>();
	String name = "";
	boolean collapsed = false;
	/**
	 * @return the name
	 */
	public String getName()
	{
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name)
	{
		this.name = name;
	}
	/**
	 * @return the items
	 */
	public List<Node> getItems()
	{
		return items;
	}
	public boolean isCollapsed()
	{
		return collapsed;
	}
	public void setCollapsed(boolean collapsed)
	{
		this.collapsed = collapsed;
	}
	public void toggle()
	{
		collapsed = !collapsed;
	}
}
